{extends file="assets::smarty-templates::Master"|ToPath}
{block name=content}
{html_css file="whiteLabel/light/jquery.datatables.css"}
{html_css file="tooltip/coda.css"}
 
<label><h1>Lista de Amonestaciones</h1></label>    
<fieldset>
    <table class="datatable">
        <thead>
            <tr>
                <th class="sorting_asc">Nombre del Practicante</th>
                <th class="sorting">Empresa</th>
                <th class="sorting">Fecha de Reporte</th>
                <th class="sorting">Tipo de Reporte</th>
                <th>Opciones</th>
            </tr>
        </thead>

        
        <tbody>
            {foreach $reportes as $reporte}
                {$url = "{$procesar}&idReporte={$reporte->getIdReporte()}"}
               <tr>
                    <td>{$reporte->getPracticante()->getEstudiante()->getNombres()} {$reporte->getPracticante()->getEstudiante()->getApellidos()}</td>
                    <td>{$reporte->getPracticante()->getSolicitud()->getEmpresa()->getNombre()}</td>
                    <td>{$reporte->getFecha()|json_to_date:"d/m/Y"}</td>
                    <td>                      
                        {TipoReporte::valueToString($reporte->getTipoReporte())}
                    </td>
                    <td>
                        <a class="tooltip btn onlyicon i_create_write small" href="{$url}" title="Responder"></a>
                    </td>
                </tr>
            {/foreach}       
        </tbody>
    </table>
       
</fieldset>
 <a class="btn icon i_arrow_right small" style="float: right" href="{$respondidos}">Mostrar Reportes Contestados</a>

 <script>
    {literal}
    require(["WhiteLabel.datatables", "jQuery.ToolTip"], function($) {
        
        $(".tooltip").tooltip({
            track: true,
            delay: 0,
            fixPNG: true,
            top: -5,
            left: 30
        });
            
        /*
            top: 15,
            left: 10
        */
        
    });   
    {/literal}
</script>
 
{/block}
